Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSK Fixes Sample #216

Closed
wants to merge 1 commit into from
Closed

Conversation

Corecii
Copy link

@Corecii Corecii commented Nov 19, 2024

This PR includes fixes necessary to get TSK lat support working for a 2021 Sienna based on comparing FrogPilot-Testing with https://github.com/anbuck/FrogPilot/tree/rav4prime . This successfully makes FrogPilot lateral work on my TSK 2021 Sienna.

Since this PR is on the wrong branch, I'm not expecting it to be merged as-is. I've created it as any easy visualization of what's still missing for TSK support.

Here's a patch file you can use to apply this patch on any branch with git apply:
0001-TSK-Fixes.patch

@@ -29,7 +30,7 @@ def _get_params(ret, candidate, fingerprint, car_fw, disable_openpilot_long, exp
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_TOYOTA_ALT_BRAKE

if ret.flags & ToyotaFlags.SECOC.value:
ret.secOcRequired = True
# ret.secOcRequired = True
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this was for. Doesn't look like any code used it when I did a find-in-all-files search for secOcRequired so I've just commented it out to get FrogPilot running.

@FrogAi
Copy link
Owner

FrogAi commented Nov 19, 2024

Please submit your pull request to the "MAKE-PRS-HERE" branch.

@FrogAi FrogAi closed this Nov 19, 2024
Comment on lines +177 to +178
result = can_list_to_can_capnp(can_sends, msgtype='sendcan', valid=CS.canValid)
self.pm.send('sendcan', result)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, this is unnecessary. This was part of me debugging why can_list_to_capnp was failing (it was the missing t value in secoc.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants